//---------------------------------------------------------------------
// <copyright file="CsdlUsing.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------

namespace Microsoft.Data.Edm.Csdl.Internal.Parsing.Ast
{
    /// <summary>
    /// Represents a CSDL Using.
    /// </summary>
    internal class CsdlUsing : CsdlElementWithDocumentation
    {
        private readonly string alias;
        private readonly string namespaceName;

        public CsdlUsing(string namespaceName, string alias, CsdlDocumentation documentation, CsdlLocation location)
            : base(documentation, location)
        {
            this.alias = alias;
            this.namespaceName = namespaceName;
        }

        public string Alias
        {
            get { return this.alias; }
        }

        public string Namespace
        {
            get { return this.namespaceName; }
        }
    }
}
